<!doctype html>

<html>
	<head>
		<meta charset="utf-8">
		<title>{{ contents.name }}</title>
	</head>
	<body>
		{% module Nav(contents.id) %}
		<h1>{{ contents.name }}</h1>
		{{ contents.html }}
		<p>Last modified: {{ locale.format_date(contents.modified) }}</p>
		{% if current_user %}
		<p><a href="{{ reverse_url('edit', contents.slug) }}">Edit</a></p>
		{% end %}
	</body>
</html>